FROM xxfaxy/self-alpine-python
WORKDIR /root
RUN mkdir /root/python_crontab
COPY code /root/python_crontab
RUN chmod a+x /root/python_crontab/*
COPY crontab /etc/crontabs/root
RUN rm -rf /root/python_crontab/*.pyc
COPY run.sh /run.sh
RUN chmod a+x /run.sh
CMD ["/run.sh"]
